package com.ruoyi.material.service;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.bill.domain.ZnDepotItem;
import com.ruoyi.material.domain.ZnMaterialInitialStock;

/**
 * 产品初始库存Service接口
 * 
 * @author ruoyi
 * @date 2022-01-05
 */
public interface IZnMaterialInitialStockService 
{
    /**
     * 查询产品初始库存
     * 
     * @param id 产品初始库存主键
     * @return 产品初始库存
     */
    public ZnMaterialInitialStock selectZnMaterialInitialStockById(Long id);

    /**
     * 查询产品初始库存列表
     * 
     * @param znMaterialInitialStock 产品初始库存
     * @return 产品初始库存集合
     */
    public List<ZnMaterialInitialStock> selectZnMaterialInitialStockList(ZnMaterialInitialStock znMaterialInitialStock);

    /**
     * 新增产品初始库存
     * 
     * @param znMaterialInitialStock 产品初始库存
     * @return 结果
     */
    public int insertZnMaterialInitialStock(ZnMaterialInitialStock znMaterialInitialStock);

    /**
     * 修改产品初始库存
     * 
     * @param znMaterialInitialStock 产品初始库存
     * @return 结果
     */
    public int updateZnMaterialInitialStock(ZnMaterialInitialStock znMaterialInitialStock);

    /**
     * 批量删除产品初始库存
     * 
     * @param ids 需要删除的产品初始库存主键集合
     * @return 结果
     */
    public int deleteZnMaterialInitialStockByIds(Long[] ids);

    /**
     * 删除产品初始库存信息
     * 
     * @param id 产品初始库存主键
     * @return 结果
     */
    public int deleteZnMaterialInitialStockById(Long id);

    BigDecimal getInitStockByMidAndDepotList(List<Long> depotList, Long mId);

    List<ZnMaterialInitialStock> selectZnMaterialInitialStockListByDepotId(Long materialId, Long tenantId, List<Long> depotList);

}
